.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 0;
}

.header {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.description {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.interactionContainer {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.voiceInputSection, 
.textInputSection,
.historySection {
  width: 100%;
}

.sectionTitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.controlsContainer {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.statusIndicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.statusDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
}

.statusDot.active {
  background-color: var(--secondary-color);
  animation: pulse 1.5s infinite;
}

.resultContainer {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  min-height: 150px;
  border: 1px solid var(--border-color);
}

.textInputContainer {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.textInput {
  flex: 1;
}

.audioPlayer {
  width: 100%;
  margin-top: 1rem;
}

/* 历史记录样式 */
.historySection {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.historyList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.historyItem {
  background-color: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.historyItem:hover {
  box-shadow: 0 4px 8px var(--shadow-color);
}

.historyHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid var(--border-color);
}

.historyMeta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.historyType {
  font-weight: 500;
  color: var(--primary-color);
}

.historyTime {
  font-size: 0.875rem;
  color: #666;
}

.historyActions {
  display: flex;
  gap: 0.5rem;
}

.historyContent {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.historyContent.expanded {
  max-height: 500px;
}

.historyInputOutput {
  padding: 1rem;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
} 